<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.service.worklog.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String positionId = request.getParameter("dutyId");
    if(positionId == null) positionId = "";
    
    DutylogItem dutyItem = DutylogService.loadDutylog(request, response, out);
    int personId = -1;
    String personname = "";
    String begintime = "";
    String endtime = ""; 
    String importwork = "";
    String notify = "";
    String problem = "";
    String todo = "";
    if(dutyItem != null) {
    	Dutylog duty = dutyItem.getBean();
    	Person person = dutyItem.getPerson();
	    personId = duty.getPersonId();
	    personname = person.getName();
	    begintime = duty.getBegintime();
	    endtime = duty.getEndtime();
	    importwork = duty.getImportWork();
	    notify = duty.getNotify();
	    problem = duty.getProblem();
	    todo = duty.getTodo();
    } 
%>
<html>
<head>
	<title>当班日志</title>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">	
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<form name="form1" action="atworklog_action.jsp" method="post" target="actionFrame">
	<input type="hidden" name="positionId" value="<%=positionId%>">
	<input type="hidden" name="actionType">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>当班日志</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="20%">
					<col width="80%">
					<tr>
						<td class="field">
							值班人
						</td>
						<td>
							<%=personname %>
						</td>
					</tr>
					<tr>
						<td class="field">
							值班开始时间
						</td>
						<td>
							<%=com.infomanage.util.TimeUtil.toFullTime(begintime) %>
						</td>
					</tr>
					<tr>
						<td class="field">
							值班结束时间
						</td>
						<td>
							<%=com.infomanage.util.TimeUtil.toFullTime(endtime) %>
						</td>
					</tr>
				</table>
				<table class="dataTable2">
					<col width="20%">
					<col width="20%">
					<col width="60%">
					<tr>
						<td class="field" rowspan="4">
							值班工作情况
						</td>	
						<td class="field">
							值班重点工作
						</td>	
						<td class="field" height="50px">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=importwork %></textarea>
						</td>				
					</tr>
					<tr>
						<td class="field">
							上级通知
						</td>	
						<td height="50px">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=notify %></textarea>
						</td>				
					</tr>
					<tr>
						<td class="field">
							待办事宜
						</td>	
						<td height="50px">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=todo %></textarea>
						</td>				
					</tr>
					<tr>
						<td class="field">
							存在问题
						</td>	
						<td height="50px">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=problem %></textarea>
						</td>				
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="tableBtn">
				<span onclick="window.print();">打印</span>			
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
	</form>
	<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>